package cn.hpclub.server.validator.admin;

import com.jfinal.core.Controller;
import com.jfinal.validate.Validator;

public class OrgLocationAddValidator extends Validator{

    @Override
    protected void validate(Controller c){
        validateRequiredString("name", "OrgLocationName", "name不允许为空!");
    }

    @Override
    protected void handleError(Controller c){
        c.renderJson();
    }
}
